import request from '@/utils/request.js'

// 获取医学公式集合目录
export function getAllCatalogAPI (params) {
  return request({
    url: '/api/Formula/GetFormulaList',
    method: 'get',
    params
  })
}

// 获取医学公式详情
export function getFormulaDetailsAPI (params) {
  return request({
    url: '/api/Formula/GetFormulas',
    method: 'get',
    params
  })
}

// 医学公式计算
export function FormulaCalculationAPI (params, data) {
  return request({
    url: '/api/Formula/FormulaCalculation',
    method: 'post',
    params,
    data
  })
}